#ifndef ___SERIAL_OPS_H___
#define	___SERIAL_OPS_H___

#ifdef __cplusplus
extern "C" {
#endif


void extract_data(char *data, int data_length);
void append_to_buffer(char *data, int data_length);
void try_extract_data();
void extract_rtcm();
char *get_checksum(char *, int); //获取一段数据的CRC24Q校验码
void print_hex(char *data, int data_length);
void format_buffer_data();
int get_effective_head_tag_index();
int startwith_gga_head(char *data);
int indexof_first_0d0a(char *data, int data_length);
int startwith_rtcm_head(char *data);
int get_rtcm_total_length(int rtcm_length); //rtcm的完整长度
int getRtcmType(const char *d300_addr);
int startwith_imu_head(char *data);
int endOfRtcm(char *rtcmData, int rtcmData_length);
void extract_gga();

#ifdef __cplusplus
}
#endif

#endif /* ___SERIAL_OPS_H___ */
